<!DOCTYPE html>
<!-- saved from url=(0048)http://v3.bootcss.com/examples/navbar-fixed-top/ -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="./img/icon.png">

    <title>首页 - 旅游网络系统</title>

    <!-- Bootstrap core CSS -->
    <link href="./css/bootstrap.min.css" rel="stylesheet">
	
	<link href="./css/navbar-fixed-top.css" rel="stylesheet">
	<link href="./css/index.css" rel="stylesheet">
	
</head>
<body>
    <?php
		require "nav.php";
	?>
	
	
	<div id="screen-wide-background">
		<div id="content" class="container">
			<div class="row center-block">
				<h1><span>旅游</span><b> 网络系统</b></h1>
			</div>
		</div>
	</div>
	
	<?php
		require "footer.php";
	?>
 
	<script>
		function pop_Regisger() {
			$('#register_modal-dialog').modal('show');
			return false;
		}
		function pop_Login() {
			$('#login_modal-dialog').modal('show');
			return false;
		}
		function ajax_post(form,callback) {
			$.post(form.attr('action'),
			form.serialize(), 
			function(data, status) {
				//alert("数据：" + data.status + "\n状态：" + status);
				if (status == "success") {
					callback(data)
				}
			},
			"json");
		}
		function ajax_login() {
			var form=$("#modal_login_form")
			form.find('.form-group').removeClass('has-error');
			ajax_post(form, function(rep) {
				//$("#content").val(rep.status);
				if (rep.status == "success") {
					//alert("!!");
					window.location.reload();
				} else {
					for (err in rep.errors) {
						gp = form.find("[name='"+err+"']").parent()
						gp.find("label").text(rep.errors[err][0]);
						gp.addClass('has-error')
					}
				}
			});
			//alert("!");
			return false;
		}
		function ajax_register() {
			var form=$("#modal_register_form")
			form.find('.form-group').removeClass('has-error');
			ajax_post(form, function(rep) {
				//$("#content").val(rep.status);
				if (rep.status == "success") {
					//alert("!!");
					window.location.reload();
				} else {
					for (err in rep.errors) {
						gp = form.find("[name='"+err+"']").parent()
						gp.find("label").text(rep.errors[err][0]);
						gp.addClass('has-error')
					}
				}
			});
			//alert("!");
			return false;
		}
		function ajax_logout() {
			$.get(
				'logout.php',
				function(data, status){
					//alert("数据：" + data.status+ "\n状态：" + status);
					window.location.reload();
				},
				"json");
			return false;
		}
	</script>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
	
	<script src="./js/require.js"></script>
    
	<script src="./js/jquery-1.11.0.min.js"></script>
	<!--
    <script src="./js/jquery.min.js"></script>
	-->
	<script src="./js/bootstrap.min.js"></script>
    
</body>
</html>